package main

import ("fmt"
"strconv"
"strings"
)

func main() {
	str := "依托答辩"
	fmt.Println(len(str))

	for index,item:= range str {
		fmt.Printf("索引是：%d,item：%c \n",index,item)
	}
	r:= []rune(str)
	for i:=0;i<len(r);i++ {
		fmt.Printf("%c \n",r[i])
	}
	num1,_ := strconv.Atoi("666")
	fmt.Println(num1)
	str1 := strconv.Itoa(88)
	fmt.Println(str1)
	fmt.Println(
		strings.Contains("javaandgolang", "go"),
	strings.Count("javaandgolang","a") ,
	strings.EqualFold("go" , "Go"),
	strings.Index("javaandgolang" , "a") ,
	strings.Replace("goandjavagogo", "go", "golang", -1) ,
	strings.Split("go python java", " "),
	strings.ToLower("Go"),
strings.ToUpper("go"),
strings.TrimSpace("     go and java    "),
strings.Trim("~golang~ ", " ~")  ,
strings.TrimLeft("~golang~", "~"),
strings.TrimRight("~golang~", "~"),
strings.HasPrefix("http://java.sun.com/jsp/jstl/fmt", "http"),
strings.HasSuffix("demo.png", ".png"),
)
}